package com.bo.entity;

public class Mark {
	
	private int id;
	private String companyId;
	private String companyName;
	private String productId;
	private String productName;
	

	
	public Mark(String companyId, String companyName, String productId,
			String productName) {
		super();
		this.companyId = companyId;
		this.companyName = companyName;
		this.productId = productId;
		this.productName = productName;
	}


	public Mark(int id,String companyId, String companyName, String productId,
			String productName) {
		super();
		this.id=id;
		this.companyId = companyId;
		this.companyName = companyName;
		this.productId = productId;
		this.productName = productName;
	}
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}

	public String getProductName() {
		return productName;
	}

	public void setProductName(String productName) {
		this.productName = productName;
	}


	@Override
	public String toString() {
		return "Mark [companyId=" + companyId + ", companyName=" + companyName
				+ ", productId=" + productId + ", productName=" + productName
				+ "]";
	}



	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Mark other = (Mark) obj;
		if (companyName == null) {
			if (other.companyName != null)
				return false;
		} else if (!companyName.equals(other.companyName))
			return false;
		if (id != other.id)
			return false;
		if (productId == null) {
			if (other.productId != null)
				return false;
		} else if (!productId.equals(other.productId))
			return false;
		if (productName == null) {
			if (other.productName != null)
				return false;
		} else if (!productName.equals(other.productName))
			return false;
		return true;
	}


}
